"use strict";
const e = require("../../common/vendor.js"),
  a = {
    __name: "card-flow",
    props: {
      userTravels: {
        type: Array,
        required: !0
      }
    },
    setup(a) {
      const i = a,
        t = e.ref(!1);
      return e.watch(i, (e => {
        t.value = !(e.userTravels.length > 0)
      })), (i, r) => e.e({
        a: e.f(a.userTravels, ((a, i, t) => e.e({
          a: a.cover_image.width / a.cover_image.height < .8
        }, a.cover_image.width / a.cover_image.height < .8 ? {
          b: a.cover_image.url
        } : {
          c: a.cover_image.url
        }, {
          d: e.t(a.address),
          e: "video" == a.fileType
        }, (a.fileType, {}), {
          f: e.t(a.title),
          g: e.f(a.author_data, ((a, i, t) => ({
            a: a.avatarUrl,
            b: e.t(a.nickname)
          }))),
          h: i,
          i: e.t(a.likes),
          j: i,
          k: e.o((i => function (a, i) {
            const t = getCurrentPages();
            "pages/details-page/details" == t[t.length - 1].route ? "video" == i ? e.wx$1.navigateTo({
              url: "/pages/details-page/video?_id=" + a
            }) : e.index.$emit("detailspage", {
              _id: a
            }) : "image" == i ? e.wx$1.navigateTo({
              url: "/pages/details-page/details?_id=" + a
            }) : e.wx$1.navigateTo({
              url: "/pages/details-page/video?_id=" + a
            })
          }(a._id, a.fileType)), i)
        }))),
        b: t.value ? 0 : "inherit",
        c: t.value
      }, (t.value, {}))
    }
  },
  i = e._export_sfc(a, [
    ["__scopeId", "data-v-d4a6795c"]
  ]);
wx.createComponent(i);